User name set as unique on the DB layer

It has been checked on the data-flow level, but it is better to have it at the DB layer as well.