Convert Database to Java