In this article we focus on the presentation of the inner structure of the database for the content-based image retrieval (CBIR) system containing house images. The part devoted to image processing is signalled to the extent necessary for further database (DB) structure explanations to the reader. In this paper standard DB project methods in the Oracle 10 g system have been used to generate a database for storage and retrieval of house images. The main body of the article covers the DB description and explanation of the information flow between Oracle and Matlab. For our system, Matlab is applied in image preprocessing as well as retrieval of images, which are answers to user's queries.