adding sha1 encryption to application and db