$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "customtable (userid, friendid)VALUES($userid, $friendid)");