Now retrives all data from DB to train network