static async save(key, userID) {
        let bean;
        bean = R.dispense("api_key");

        bean.key = key.key;
        bean.name = key.name;
        bean.user_id = userID;
        bean.active = key.active;
        bean.expires = key.expires;

        await R.store(bean);

        return bean;
    }
Create a new API Key and store it in the database
@param {object} key Object sent by client
@param {int} userID ID of socket user
@returns {Promise<bean>} API key