Core: extension manager changes. Check for existing extension added before adding  new extension in db.