added db rebuild script