Moved SQL calls into a model class per Vanilla best practices