Fixed database deletion error - we now delete old one-step problems.