Simple relational database written in java