Remove old records from database