Prepare DB connection work.