For IIS
Read About Loadmaster,Application Request Routing (ARR) and Web Application Proxy (WAP), It will help you to understand Load Balancing.
Related to Database switching
You need to create Multiple instance of SQl server for that database and configure those instance to Applications instances which is hosted on different servers/IIS .
And Most important Use replication between Database instance to sync realtime data