select into scalar - crude but works
db tests in travis