Update code of database connection file