Prepared statements

Docs for variables (what is it suppose to be, a hash?), fields and result would be nice.