Simple wrapper for using prepared statements using the MySQL C API.