Revert "Open DB connections when app starts"

This reverts commit 7f224675a55be8cff17507da49d980fc5e10ac88.
Revert "Revert "Open DB connections when app starts""

This reverts commit 009a5d89e3ad109152c69be1b082e7e3d66534ba.