Setup gems and pg

Group Work. Got initial tests passing.