add domain for lunch task logic / refactor sql query