add tests and refactoring
Merge branch 'master' of https://github.com/ko2ic/FMDBStoreGenerator