fix unknown type bug and ready to go sqlite