moved factory, config and request to new object pool
added small db class, not tested yet