EBean save/update fixes, database model superclass