Add check for null databaseConnection in SQLRead