add debug flag to app
use database name from env var