Added security and access SQL