Setup key/secret vault

use wpdb where possible