Added checks for LBE Security Master and for accessibility of the database