fixed a bug with the db update process