converted sqlite / FMDB example to Swift