search.py to search in DB and print out the data in rows