Set up http and postgresql