Updated db structure to match JSON object coming from frontend; also started really implementing the REST endpoints