Workaround: strangest bug with sqlite.
Special case for SQLite :(
Active records cache overhaul.
Fixes #3
Moved helpers back into lib
Better code <3