Refeactor metadata mongo stuff