model read and update where clause