changes to accommodate the db changes

by Kim To 30/08/2014