[update] improved error messages for SELECT and INSERT