how logs coming to database files