Testing with SQLite
Fix for mysql compat
Fix re ryanc
fix warnings
make testing mode easier to use