App: store db into global var