CitiusTech interview question

Decorator working How'd you fetch data from postgres and store in python.