changed db to postgress