finish testing the function of taking private_key from db
save pkt into db, read private_key and pub_key from db