webapp: pass database to Application class