Change get and post to query and data