Using Economic Models to Tune Resource Allocations in Database Management Systems