Validate database file for graphs.