FMDB implemented and basic function logic is OK