initial commit

This is a very rough version of the code to show the general intention
of the program -- the database setup scripts have not yet been
generalized and are not yet uploaded