Update storage.c

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