fix check to execute xivo-init-db