antoniop
committed
on 13 Jun 18
Use more portable sql idioms and simplify query using api, remove unused query