fixed sqlite's hackjob