added CRUDs for beacon table and main controller