Added passing extra data from db endpoints to the client