postgres error fix + home controller create + location.js create