added latest db
fixed some bugs in the controller generator