use createTable instead of query