Added database training