how to insert data dynamically in mysql