updated update method to allow the PUT request to update a mongo record.
added a flattenObj method to assist with updates
added fork prop to allow mongo to run as a daemon