fixed some startup bugs for missing database file

started to save/load dgv layout