added a generate id method to customerdb class

also changed update method so it returns boolean.