move: generate SQLite queries with std::ostringstream instead of boost::format for improved performance