java mysql database infrastructure