modifications of https://launchpad.net/mousedb