Add automatic unregistration of players absent a fixed amount of time; improve database API.