Work on snapshot logic && database layout
	modified:   client.c
	modified:   database/database.c
	modified:   database/database.h
	modified:   database/sqlite.c
	modified:   database/sqlite.h
	modified:   test.sh
Updated docs/database.dia
	modified:   docs/database.dia
	deleted:    docs/database.dia~
	modified:   docs/database.png
gitignore dia tmp file
	modified:   .gitignore