Update the database functionality