read pri_key form db