fixed #494
fixed #494
fixed #489 + stack level too deep when running seed in db:build