Fix SQLite issue with children() and childrenCount()

Fixes #45, however, will need additional work on unit testing