Task #1803 - adding sql and limiting open tasks to per user basis