fix for sqlite