changed option order for sqlite3 to work on older versions of sqlite3