Factored out ServerDB class.