began pythonrewrite of the core database