New law creates a national database of Airbnb-style accommodation and introduces fines for non-compliance.