adding todo in server function