Link Sub Interface to Database via Java codes