In order to update a database each time a user connects, I'm modifiying the dnsmasq configuration so that I can run a script.
Source code for my work todate can be found here
Cheers Don