how to create a dynamic table in mysql