added support to use both memdb and filedb when running server