Database Resource Management and Task Scheduling