Added java code for database initiation and population.