fixed issue with database not being loaded when uninstalling a module