Modifying migrations for postgres

Install postgres and initialize dbs if not installed
Import sql files so that south_migrationhistory exists in all dbs