changed connection to postgre