Clear old data from the db