fix the gui connect to database action

it was not recognizing that the QString filename returned by the pop up
window was a string.