Made some changes about the layout, and added export database option