fix of sql definition of view
change of default value in username
fix of potencial NullPointerException