Added Capfile and reconfigured database