Adding db.py to track database changes.
Added caching functionality and latest jobs function