Fixed sql leak
Solved SQLite driver issue etc, new bug (see issue)