Simple blog app using php and mongodb, practicing basic mvc and pagination