correctly treat sqlite types