update db and view profile