new start up process implemented (but not tested) for main.db