Create options for db connection
Change advert handler to cv handler