added db script, changed assignment entity bean