Add view support

When each table's structure is retrieved, actual tables and their data
are written immediately whereas views' details are stored and written
at the end of the file.