directory crud with postgress