Add trailing semicolon to a query. Seems like sqlite is more picky than mysql.