The Ads are stored in files not in database.
You can find the ads at the folder ads which conyains 3 files :
responsible for the header ad
responsible for the ad between the content in the pages
responsible for the sidebar ad
Open the files and place your code in it (recommend to choose a responsive code from google adsense).