Do not run plain SQL against all DBs

review by @szeiger