Wrote an initial build script for the database.

This probably isn't the best way to do things, but here's a start.  Someone can tweak as necessary.

I haven't tested it other than the fact that it executes without error...