how to get a number of data into database using java frames