Db fixes

- Fix typo for TsamaDatabaseTable class
- Fix type for query in TsamaDatabaseTable
- Add MYSQL_COLUMN_TYPE_CHAR and MYSQL_COLUMN_TYPE_VARCHAR defines