delete from tbg_issues;
delete from tbg_comments;
-- DELETE FROM  `tbg_files` WHERE  `id` NOT IN ( 2, 4, 33 );
delete from tbg_issue_estimates;
delete from tbg_issue_spenttimes;
delete from tbg_issueaffectsbuild;
delete from tbg_issueaffectscomponent;
delete from tbg_issueaffectsedition;
delete from tbg_issuecustomfields;
delete from tbg_issuefiles;
delete from tbg_issuerelations;
delete from tbg_issuetags;
delete from tbg_log;
delete from tbg_mailing_queue;
delete from tbg_notifications;
delete from tbg_userissues;
delete from tbg_mailing_queue;