updated greyd-setup & greydb to use err.h error handling