grammar: fix crash and autoincrement in primary key table_constraints
sqlite3: workaround to prevent creating 0 byte sqlite3 database files