A simple mvc for sql in java