still can't figure out why it won't update the database