Fixed some minor problems in DAO classes and added command line support to manipulate the schema (create, truncate or delete)