changes for handling db requests