Use performant std sql

This should allow us to run on Debian "stable" again, but doesn't have the performance problems of the previous attempt