Added java config for the database