switch to fmdb