Remove extra database call in show_map