1. A method comprising: receiving a plurality of requests for access to a resource with a training module of a database system, each request having an associated group of features to be mapped to classes in a database environment, wherein the database environment is provided by one or more server computing devices; analyzing the group of features for each request with the training module to collect observations about the plurality of requests, wherein the training module generates a statistical model for each database instance within the database environment; predicting an outcome of a subsequent request based on the observations with a learning module within the database system, wherein the prediction is based on the statistical model from the training module; and allocating resources in the database environment to service the subsequent request based on the prediction.