Fixes #2. Secure method DB::connectDB