Add ability to fall back to local database if connection to core fails.