readit.py fix

moved db connection back to get_listings function