Modify to use postresql db locally