got rid of second call to db in onprepareoptionmenu
dialog that uses cursor available in context and cursorwrapper that hides one row
forgot to close one cursor
move calculation of sum to cursorloader
move loading of templates to cursor loader
replaced by selectfromcursordialogfragment