moving variables into the new database so that we can become truly multi-threaded