data: add db.withPreparedStmt(), which prepares statements for queries on first use, and re-uses after; clean up in db.Close()