Java coursework Project DB