Attempts to get the enquiry side of the DB integration working.