Functions for simplifying SQLite queries in C++.