Updating DB correctly works