* fix #86 by storing dbs on window close event

Signed-off-by: Martin Schaaf <martin@mascha.me>