CONTRIB-4218 clean up capability settings

removed fixed CAP_PREVENT and CAP_PROHIBIT
CONTRIB-1698 fix uniqueness in get_records_sql
Merge remote-tracking branch 'upstream/master'