origin database script