db connection for each worker and other updates