Allow serving on unix socket
Modify to use simpler database interface