Add query function in SQLite module.
Implement sqlite test case.