test to ensure bad prepared statements raise a StatementInvalid exception
translate exceptions on prepared statement failure
fix exception translation