Refactored security to remove hard coded security

Removed hard coded security
Moved security data to RavenDB