Cleans up DB.