query, insert and update is ok