Set correct pgsnapshot options, and only add them if apidb is disabled
Merge branch 'snapshot_options' into gsoc13