flowgrind-common: fixes for sqlite