lightweight build unify database record to nsrs

Change-Id: I39ac2baa21629361b16587aa8aebe7b358d85297
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
diff --git a/lcm/osm_common/msglocal.py b/lcm/osm_common/msglocal.py
index 5045181..a380e61 100644
--- a/lcm/osm_common/msglocal.py
+++ b/lcm/osm_common/msglocal.py
@@ -58,8 +58,10 @@
         except Exception as e:  # TODO refine
             raise MsgException(str(e))
 
-    async def aioread(self, loop, topic):
+    async def aioread(self, topic, loop=None):
         try:
+            if not loop:
+                loop = asyncio.get_event_loop()
             if topic not in self.files:
                 self.files[topic] = open(self.path + topic, "r+")
                 # ignore previous content