database info script