updating to use postgress