fix: rewrite with mysql