spike code for sqlite