cdr_pgsql: Refactor magic number by definition for version