Added a getRelations method
Just added "type" field to the fill routine.
Still trying to clean up tables.
Finished the stories/show page.