gets things from database and stores them into the jTable