Fixed problem with id generation for entities.
Fixed creatin of new users on admin side.
Added insertion of admin user to initial sql data.