Implemented doPut database insertion functionality.