add string to bool to fix the sqlite support

Solve issue #4