remove dead code.
remove unused rtime helpers.
remove layer of indirection from mockdb -> mockdbdata -> mocktabledata.
remove unused code; add integration test; remove print statements.