Added get_status and set_location methods to database.py and get_target method to util.py