fixed pg remote db
fixed pg remote db