Update the database variables