Stackoverflow sqlite 1.3.6 fix