Changes in JavaScript and PHP.
Fixed setting ID from Mongo.
Added enquiry saving.