added/integrated server code for getting and adding tasks