Error: 'Database is invalid' When Connecting to a SQL Database