insert and query is ok