memberapi sqls