added arguments to netlog.js, untested
db stuff commented out