separate command and query in gmae