neater sqlite3 command error detection