my $appdb = ZXappz::Database->new(); $appdb->store_new_user($previously_generated_name,time); # uses DBI to insert into a table .. $appdb->close # call the DBI's close but maybe also log somewhere the succesfull operation