Pretty-print database file