DataWriter with prepared statement