Updated FloorPlanManagementController to use database