Optimized database access amounts