Refactored controller creation process.
Fixes #2661: Added boolean column type support for SQLite