• Here is the simples solution:

    1. Have two separate databases and two separate web servers servicing the requests

    2. Have the users login to a third common website

    3. Redirect the users to the appropriate website once authenticated and location is known.

    Always try and keep your web apps as close to the database as possible. Reduce latency.

    Let me know if that makes sense.

    Good Luck !!