initial implementation of the python database backend