Class for executing prepared statements