add retrieve db script