fixes for sqlite and pg