Adds priority for inserting and getting todos