removing extra mysql command