Fixed ebean exceptions and generics, still some polishing to do