fixed tooltip issue and switch database bug