Adding support if unable to connect to remote DB, like reading from a file