Adding import functionality for postgres db