Change database connection