fixed rails install, added postgresql, added site controller