pkmds_g5_sqlite: fixed Clang support

* Clang doesn't like comparisons between strongly-typed enums and ints
Merge pull request #2 from ncorgan/clang_support

pkmds_g5_sqlite: fixed Clang support
Merge branch 'master' into gen3_dev