Wrapping sqlite3 here instead of in calling code