working version

this version has been tested and has created the desired database.