Moved DB table creation to cache_db.py
and minor code optimizations.