Cleanup database files and add SQLite support
Tweak statistics module to not require curl