UI Functionallity and MySQL INSERT Query