profile update from database working