Error fix.
Moved to namespace.
Added MimeTypes.
Use MimeTypes class.
Multiple changes.
* Fixed error caused when creating the SQL string for a Relation.
* Tinyint columns whose name starts with "is_" are taken as boolean.
Error fixes.