Fixes to parsing
Changed transaction table name. transaction is a SQL reserved word