I believe you will be able to query the ssg database and get the details directly if you are smart enough to map the data in two tables published_service and policy_version. A sample query would look like this.
select a.name,FROM_UNIXTIME(b.time DIV 1000),b.user_login,b.active from published_service a,policy_version b where a.name="Service1" and goidToString(a.policy_goid)=goidToString(b.policy_goid);
Output from policy manager and the appliance will look like this. You might want to adjust the timezone to your local time zone and the active policy is the one has value=1 in column active.