Fixes #4603 Adding lazy DB connection call