Query for list of databases to see if globallinks exists

Rather than tables (oops)

Closes #29