creating basic model for images and types of ads, initializing database