helpers
misc additions on node, database query