Update storage.c

sqlite pointer was converted to int32. I think that it doesn't work by 64bit compiler.