Solved BBDD integrityproblems on deleting apps(#120)