I have a war file with my webapp and I need to generate the database tables in MySQL in the moment when I have copied the war to the webapps folder from Tomcat (assuming Tomcat is running). 

Is there a way to do this, can you help me with some information about this?

PS. It's a very simple webapp, using just JDBC, i don't use any ORM frameworks. Is it possible with JDBC?