GUI DB fix #3

sending database through open instead of constructor