bug fixes

insert repeatType correctly in db
show TBD in main worklist