update db and controller for unique username