update latest database script