fix license text, start pgsql export function