add domain for lunch tasks logic / refactor sql query