Some improvements on DAO.stg. Started testing against a real database, and fixing minor bugs. Created a test case since the parsing of table comments is not working in some cases. refs #437