fmdb to motion-sqlite attempt