add reference to popup panel
added some QtSql methods which don't appear to work
updated to pass db parameter to connection moduel