Make RPC creds work again

Completes the RPC DB interface to fix #4074. Useful for scripting the RPC end, making things like auto-cracking and cred management engines integrate more easily with metasploit. Also essential for msfgui.