new features: new database layer (using PDO), event mediator