Adds more to data.py
Adds close_db for space saving