Fix syntax errors in DatabaseManager