database build in java