Prepared statement

Add prepared statement code

Closes #32 
Closes #73 
Closes #75