Database::get_ids_by_field_values() should process %opts fixing #32