lookup in a binary database file