Set up persistent and postgresql