store the key pair to local database
add database operations and implement sign operation