Everywhere in my code I end up doing the following.
database->quick_insert($table,$data);
$data->{id}=database->last_insert_id(undef,undef,undef,$pk);
if ($data->{id}==0){
my $data=database->quick_select($table,$data);
}
it would be much cleaner to replace the above with either one of the following
$data=database->quick_insert($table,$data,{return=>$pk});
OR
$data->{id}=database->quick_insert($table,$data,{return=>$pk});
OR
$data->{id}=database->quick_insert_with_id($table,$data,{return=>$pk});