database connection update