I am new to python. I have millions of data in postgreSQL server, I want to import last 18000 transactions on python. I have been able to count rows in python after buildin