Add has_many, belongs_to to model based on table.json.
Some refactoring to naming conveition for keyword.