added setup code for mysql; constructs db, tables, etc, on the fly