How do I combine SELECT and PRAGMA into one query?