Modify behaviour to return a blank db if logindb could not open