removed active wait for db connection