part 1 of sqlite conversion: parser