Updates for adding certificate to store and db