Complete refactor to focus on MetaModels to make it easier to handle the statements and work on different data sources