Fixed connecting to the wrong database, fixes issue #57