updated python scripts for yahoo and database