add method create_query