Sql Version Query Command In Python