Added old (maybe not needed anymore) helper SQL