refactored response to a standard response; setting of principal created date from db NOW() to time.NOw() in PUT