Added more functionality to the middletier generator
Added a unique key