Fix error in sqlite3 postauth query