add FMDB support