Rough rails structure in place

Will need to change the db structure later as I add more models.