update to the database layer