fix saving requests to db