updating database connection to OS