Migrated to postgres sql