Cleans up data base.