update prep db script