Adding Hibernate criteria-based functionality to select data from DB and adding data to DB
Removing not-useful interfaces.
Minor fixes.