fixed results header and sqlite3 fixes