sqlite3pp statements can be moved
Performance adjustments to avoid excessive IO