Moving db requests in a specific class