in reply to Returning Hashes

It looks like you really want to return a reference to a hash rather than the hash itself, so a return \%dbReturn; at the end of your subroutine should do it.

Also keep in mind that $dbReturn bears no relation to %dbReturn. You seem to be conflating the two.