adding retrieve sequence php file
removing excess error logging
recover training sequence from database