in reply to update database question

You should use DBI perl's generic database interface and a DBD:: driver suitable for your database.
Boris