Added a way to dump database into the layout view