in reply to Hash to Scalar?

the other way is to reflect the structure of the hash each user has in the sql table itself.

you might try the Class::DBI module. there is a nice article about it on perl.com.

HTH