* it is not clear where the database name "test" is specified here
* would it be possible to allow these to be passed as a variable when running the script?