Adding new "id only" functionality to record::get_record_list() method

It is now possible to return a list of database primary IDs instead of
active records when calling record class' get_record_list() method.
This is much faster for calls that return a large number of records.
Merge remote branch 'origin/release' into lightweight_queue