added db model and script