db schema updated, images logic added