adding tasks table, creating decorator for tasks to register before task execution and un-register after it.