Update FMDB for shared-cache mode and better busy retry behavior

* Use SQLite3 shared-cache mode, to save memory with multi-threaded
  access.
* FMDB now treats busyRetryTimeout as a time interval not an iteration
  count, and uses a more realistic interval between retries.
Fixes #178, I think.