select id from ${databaseName}.category where name = ? and parent_category_id is null