Model (MVC)
ImpressPages has no strict rules on how you should organize your model. We recommend using Model.php file to put your business logic functions. If you need several model files, split them by subject (e.g. UserModel.php, ActivationModel.php, etc.).
Use ipDb() shorthand to access the database.