Work toward SQL interface