Properly update the database on start