Removed required seialization for JSON objects; Added a new to_dictionary function to convert SQLAlchemy objects to JSON serializable dictionaries;