fixed compile bugs with sqlite3 not present