COMS12400 Java database coursework