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.
Merge pull request #12 from barrymieny/master

Add view support