sql query typo bugfix + prep to daemonize server