Support Postgres

This will not giving us flexible way to switch between mysql and postgres. need to have a better way.