creating dbworker