Added database close functions to the decider page