sqlite3: reorder the code to align with xmlgen

this way, it's easier to see what parts are missing from sqlite3gen

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
sqlite3: don't return on invalid #includes

Signed-off-by: Adrian Negreanu <groleo@gmail.com>