ported AP2DataSet to use FMDB