Speed up database operations

1. Prepare statements only once.
2. Use batched inserts.
Fix TYPE_FORWARD_ONLY cursors
Apply batch in one transaction
Don’t catch NumberFormatException
Merge pull request #47 from vonloxley/sqlite

Speedup database operations