Fix for sqlite