Clean data from the database