small chat app in java with gui using database