added db setup sql script and modification to scripts