installing doctrine extensions for slug post & refactoring timestamp to use doctrine extension
refactoring more duplicate code