Connect multiple databases into single web application in Java