Dynamicize Database Connection, updated GUI