Entitiy management engine