database cfg to rq tk