fixing flot graph clicks after moving from doctrine to PDO