Script for viewing db