Added prepared statement support

Added prepared statements and row accessors.