This topic is outlined at https://learn.microsoft.com/en-us/sharepoint/upgrade-and-update/upgrade-databases-0.
To answer your specific questions, all of the site configuration is held within the content databases so things will come over as-is. You should mount the database containing the root site collection first.