newSingleQuery and newShallowColumnSql corrected to use dbName instead of name, plus from clause has "as <alias>" in newSingleQuery