refine database related items