sets up postgresql and adds foundation