DB generation script for MySQL