Cleanup old database entries, cleanup logging, add TiVo commands