implemented returning of data as JSON string
added conversion to dict for all model classes
added helper class for later refactorization