Add row, save database

Add row feature added
Save database rewrites the database
Other minor changes