Fixing functionality for moving tasks up and down the list and saving the new positions/arrangement to the database