added auto encryption to db