updating things in database works