Fix SQLite script bug
Merge branch 'develop' into exp/documents