Picture processing and automatic data base design