database usage improvement