An Artificial Intelligence Approach to Data Management