added traits for user json and dao, should try to reduce code ...