fixed deinit fail when databases do not exist