Edit database connection