FASTER BETTER STRONGER

Optimize SQLite database. Change version number to 0.2.2. Remove some
pointers - it should fix some potential memory leaks.