Refactored DAOs and datamodels to be compatible with ORMLite