Workaround for PDO bug: not returning result for insert/update queries for non-postgresql databases