Added indexes to secure resource table. Minor naming changes. Removed bad FK reference.