improvement on database