adding changes to emm db script