added _insert and _update function to EntityRepository.php