Rewrite Autoloader, add UnitTests and fix bugs in SQL and SQLite implementation.