Database cleaned from unused data + clean in code