in reply to Is there a need to escape bind values in DBI

Is $username and $password set to something? If they're set correctly, there's no reason that what you're doing shouldn't work.