change database room structure, and create a template for room creation