PostgreSQL support for import.py

Hello,
  Your starred/sharing import script produces SQL that's incompatible with PostgreSQL. The main issue is escaping quotes, both double and single, but there are some issues with booleans and dates as well. I've made some small changes to your script that allows it to produce PostgreSQL compatible output while still defaulting to MySQL.

-Tafryn