as we can see, the problem is the SLUGGISH 'DELETE FROM...' SQL sentence. perhaps a simpler DELETE FROM bbdata WHERE date<'now minus x days' can...
Separate names with a comma.