fix multi-threaded FMDB usage with FMDatabaseQueue