Minor diplay fixes
Added type to toJson()
Insert user into database