Minor user adding fix
Added bson and mako as required libraries
Fixed some wrong access in db.users instead of db.user