correct insert to query