Get prepared statement working