Added database resource to spring security.