added username to mongodb format