Refactored Dao. Removed unnecessary HSQL.