Map Perl objects to MySQL or PostgreSQL row data