backend for assigning tasks to users