PDO: everywhere prepared statements are used instead of direct execute. Quirks mode fixed.