remove bad input from database