Added FMDB functionality