fix new Db() with server passed along