Fixed parent::__construct() bug in db_repository template