PHP framework implements MVC concept and Active Record pattern for db queries