Split block position into separate fields in SQLite3 database

Old databases are automagically converted when they're loaded.

Other changes:
  * Clean up the database API a bit by removing unused ServerMap.
  * Use _v2 variant of sqlite3_prepare().
  * Add default Database methods.