Use server_version from psycopg2 connection
It is better to rely on the connection attribute [1] instead of managing our own cache which is not invalidated if the server is upgrade while trytond is running.
[1] http://initd.org/psycopg/docs/connection.html#connection.server_version