in reply to SQL and Placeholders

Try to use:
$sth->bind_param(1, undef, DBI::SQL_VARCHAR);
before you call $sth->execute($ukey)

This should help, but this is out of my head, so read perldoc DBI if I'm mistaken on how SQL_TYPE is exactly accessed.

regards,
tomte