working with db perfomance