commit parts database fetch

Added utility to fetch all parts from database.
Added ToJSON class to generate JSON object/array output