adding contact and updating postgresql