Fix: Database: Stream images work in dev

Use dbConfig.useCookies to determine if we
should use cookies instead of db.useAuthentication.