Better prepared statement handling.