flush db on deploys
errors to stderr