Stock market data collection using PostgreSQL and Python's psycopg2 library