fix: sql syntax errors