integrated postgresql and reestructured project