Refactor 'if false do nothing' logic in l3 scheduler db

Change-Id: I67983bb1115857ab11e3269fcbe1b20c85c93dbb
Merge "Refactor 'if false do nothing' logic in l3 scheduler db"