Connect to a database and pull the version