Added logging  of requests to DB