Modify the SQL ospf for work with context_name
Bug fix use context_name in sql